#ifndef SWITCHBT_H
#define SWITCHBT_H

#include <QToolButton>
#include <QPainter>
#include <QPaintEvent>

class SwitchBt : public QToolButton
{
    Q_OBJECT
public:
//    explicit SwitchBt(QWidget* parent = nullptr);
    explicit SwitchBt(int a=0 , int b=0);
protected:
    void paintEvent(QPaintEvent*);

private:
    void drawBackGround(QPainter* painter);

    void drawRound(QPainter* painter);

    int bwidth;
    int bheigth;

    int rp1 = 10;
    int rp2 = 24;
};

#endif // SWITCHBT_H
